{% extends "counterpoint/forum_base.html" %}

{% block title %}Login - {{ block.super }}{% endblock %}

{% block content %}
        <form method="post" action="/accounts/login/">
          <table>
            <tr class="row2"><td colspan="4">&nbsp;</td></tr>
{% if form.has_errors %}
            <tr class="row2">
              <td>&nbsp;</td>
              <td colspan="2" class="error">Your username and password didn't match. Please try again.</td>
              <td>&nbsp;</td>
            </tr>
{% endif %}
            <tr class="row2">
              <td>&nbsp;</td>
              <td class="login_name"><label for="id_username">Username</label></td>
              <td class="login_input">{{ form.username }}</td>
              <td>&nbsp;</td>
            </tr>
            <tr class="row2">
              <td>&nbsp;</td>
              <td class="login_name"><label for="id_password">Password</label></td>
              <td class="login_input">{{ form.password }}</td>
              <td>&nbsp;</td>
            </tr>
            <tr class="row2">
              <td>&nbsp;</td>
              <td class="login_name">&nbsp;</td>
              <td class="login_input login_submit"><input type="submit" value="Login" /><input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}/{% endif %}" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr class="row2"><td colspan="4">&nbsp;</td></tr>
          </table>
        </form>
{% endblock %}
